﻿namespace BassettData.Robots.Runner
{
    using System;

    /// <summary>
    /// Main program for the Robots Runner. 
    /// </summary>
    internal class Program
    {
        /// <summary>
        /// The main entry point for the program.
        /// </summary>
        /// <param name="args">The program arguments; present for convention,
        /// not currently used.</param>
        private static void Main(string[] args)
        {
            Console.WriteLine("BassettData.Robots.Runner - runs a Karel robot.");
            Console.WriteLine();

            var robots = new RobotTaskRepository().FindRobotTasks();
            var result = new RobotTaskRunner().RunAllTasks(robots);

            Console.WriteLine(result.ToString());

            Console.WriteLine("Done. Press ENTER to exit.");
            Console.ReadLine();
        }
    }
}